package com.assertionerror.loccounter;

import com.assertionerror.loccounter.ui.CounterForm;
import org.apache.log4j.BasicConfigurator;

import javax.swing.*;

/**
 * @author <a href="mailto:petrus@codewave.co.za">Petrus Pelser</a>
 */
public class LocCounter {

    private static void init() {
        // log4j
        BasicConfigurator.configure();
    }

    public static void main(String[] args) {
        init();

        JFrame frame = new JFrame("loc_counter");
        frame.setContentPane(new CounterForm().getMainPanel());
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocation(350, 250);
        frame.setVisible(true);
    }
}
